package com.cloudbroker.bcs.platform.dav.configure.define.element.formfield.restriction;

import com.cloudbroker.bcs.platform.dav.configure.define.element.FormFieldRestriction;

public class Option extends FormFieldRestriction {
    
    protected String description;
    
    protected String related;
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getRelated() {
        return related;
    }
    
    public void setRelated(String related) {
        this.related = related;
    }
    
    public boolean isChecked() {
        return null != value && value.equals(getProperty().getValue());
    }
    
    @Override
    protected String getRelativeVmPath() {
        return "formfield/restriction/option.vm";
    }
    
    @Override
    public String toString() {
        return "Option [description=" + description + ", related=" + related + ", value=" + value + ", id=" + id
                + ", name=" + name + ", label=" + label + ", define=" + define + "]";
    }
    
}
